package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 操作sn的操作记录
 * </p>
 *
 * @author chenj
 * @since 2020-03-28
 */
public class GoodsSnLog extends Model<GoodsSnLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 商品表id
     */
    private String goodsId;

    /**
     * 序列号
     */
    private String sn;

    /**
     * 1-进货单商品id 2-销售单商品id 3-修改商品 4-入库单商品id 5-进货退货商品id 6出库单商品id 7销售退货单商品id 8调拨单(入库)商品id 9调拨单(出)商品id 10借出单商品id 11借出归还单商品id 12借入单商品id 13借入归还单商品id 13组装拆卸单原商品id 14组装拆卸单新商品id 15盘点入库 16盘点出库 17商品新增
     */
    private Integer type;

    /**
     * null可在snDetail显示 0借入借出转化的销售或进货单作废 1借入借出转化的销售或进货单正常
     */
    private Integer borrow;

    /**
     * 进货单商品表id
     */
    private String inGoodsGoodsId;

    /**
     * 进货退货单商品表id
     */
    private String inGoodsRefundGoodsId;

    /**
     * 销售单商品表id
     */
    private String saleGoodsId;

    /**
     * 销售退货单商品表id
     */
    private String refundGoodsId;

    /**
     * 入库单商品表id
     */
    private String houseInGoodsId;

    /**
     * 出库单商品表id
     */
    private String houseOutGoodsId;

    /**
     * 组装拆卸单新商品表id
     */
    private String joinSplitNewGoodsId;

    /**
     * 组装拆卸单原商品表id
     */
    private String joinSplitOldGoodsId;

    /**
     * 调拨单商品表id
     */
    private String goodsTransferGoodsId;

    /**
     * 接入单商品表id
     */
    private String borrowInGoodsId;

    /**
     * 借出单商品表id
     */
    private String borrowOutGoodsId;

    /**
     * 借入归还单商品表id
     */
    private String borrowInBackGoodsId;

    /**
     * 借出归还单商品表id
     */
    private String borrowOutBackGoodsId;

    /**
     * 盘点单商品表id
     */
    private String checkHouseGoodsId;

    /**
     * 时间
     */
    private Date time;

    /**
     * 所属公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Integer getBorrow() {
        return borrow;
    }

    public void setBorrow(Integer borrow) {
        this.borrow = borrow;
    }
    public String getInGoodsGoodsId() {
        return inGoodsGoodsId;
    }

    public void setInGoodsGoodsId(String inGoodsGoodsId) {
        this.inGoodsGoodsId = inGoodsGoodsId;
    }
    public String getInGoodsRefundGoodsId() {
        return inGoodsRefundGoodsId;
    }

    public void setInGoodsRefundGoodsId(String inGoodsRefundGoodsId) {
        this.inGoodsRefundGoodsId = inGoodsRefundGoodsId;
    }
    public String getSaleGoodsId() {
        return saleGoodsId;
    }

    public void setSaleGoodsId(String saleGoodsId) {
        this.saleGoodsId = saleGoodsId;
    }
    public String getRefundGoodsId() {
        return refundGoodsId;
    }

    public void setRefundGoodsId(String refundGoodsId) {
        this.refundGoodsId = refundGoodsId;
    }
    public String getHouseInGoodsId() {
        return houseInGoodsId;
    }

    public void setHouseInGoodsId(String houseInGoodsId) {
        this.houseInGoodsId = houseInGoodsId;
    }
    public String getHouseOutGoodsId() {
        return houseOutGoodsId;
    }

    public void setHouseOutGoodsId(String houseOutGoodsId) {
        this.houseOutGoodsId = houseOutGoodsId;
    }
    public String getJoinSplitNewGoodsId() {
        return joinSplitNewGoodsId;
    }

    public void setJoinSplitNewGoodsId(String joinSplitNewGoodsId) {
        this.joinSplitNewGoodsId = joinSplitNewGoodsId;
    }
    public String getJoinSplitOldGoodsId() {
        return joinSplitOldGoodsId;
    }

    public void setJoinSplitOldGoodsId(String joinSplitOldGoodsId) {
        this.joinSplitOldGoodsId = joinSplitOldGoodsId;
    }
    public String getGoodsTransferGoodsId() {
        return goodsTransferGoodsId;
    }

    public void setGoodsTransferGoodsId(String goodsTransferGoodsId) {
        this.goodsTransferGoodsId = goodsTransferGoodsId;
    }
    public String getBorrowInGoodsId() {
        return borrowInGoodsId;
    }

    public void setBorrowInGoodsId(String borrowInGoodsId) {
        this.borrowInGoodsId = borrowInGoodsId;
    }
    public String getBorrowOutGoodsId() {
        return borrowOutGoodsId;
    }

    public void setBorrowOutGoodsId(String borrowOutGoodsId) {
        this.borrowOutGoodsId = borrowOutGoodsId;
    }
    public String getBorrowInBackGoodsId() {
        return borrowInBackGoodsId;
    }

    public void setBorrowInBackGoodsId(String borrowInBackGoodsId) {
        this.borrowInBackGoodsId = borrowInBackGoodsId;
    }
    public String getBorrowOutBackGoodsId() {
        return borrowOutBackGoodsId;
    }

    public void setBorrowOutBackGoodsId(String borrowOutBackGoodsId) {
        this.borrowOutBackGoodsId = borrowOutBackGoodsId;
    }
    public String getCheckHouseGoodsId() {
        return checkHouseGoodsId;
    }

    public void setCheckHouseGoodsId(String checkHouseGoodsId) {
        this.checkHouseGoodsId = checkHouseGoodsId;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsSnLog{" +
            "id=" + id +
            ", goodsId=" + goodsId +
            ", sn=" + sn +
            ", type=" + type +
            ", borrow=" + borrow +
            ", inGoodsGoodsId=" + inGoodsGoodsId +
            ", inGoodsRefundGoodsId=" + inGoodsRefundGoodsId +
            ", saleGoodsId=" + saleGoodsId +
            ", refundGoodsId=" + refundGoodsId +
            ", houseInGoodsId=" + houseInGoodsId +
            ", houseOutGoodsId=" + houseOutGoodsId +
            ", joinSplitNewGoodsId=" + joinSplitNewGoodsId +
            ", joinSplitOldGoodsId=" + joinSplitOldGoodsId +
            ", goodsTransferGoodsId=" + goodsTransferGoodsId +
            ", borrowInGoodsId=" + borrowInGoodsId +
            ", borrowOutGoodsId=" + borrowOutGoodsId +
            ", borrowInBackGoodsId=" + borrowInBackGoodsId +
            ", borrowOutBackGoodsId=" + borrowOutBackGoodsId +
            ", checkHouseGoodsId=" + checkHouseGoodsId +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
